credit: generalize __vcpu_has_soft_affinity()
authorJan Beulich <jbeulich@suse.com>
Fri, 6 Mar 2015 15:56:53 +0000 (16:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Mar 2015 15:56:53 +0000 (16:56 +0100)
commit3582093e013824bc66ce87c3a0615772b856a7a9
tree10682cc4698de3668f98fae0d18b652f5c100bcd
parent2090ff500d2de38f23f85a931032699ec15064e7
credit: generalize __vcpu_has_soft_affinity()

As pointed out in the discussion of the patch at
http://lists.xenproject.org/archives/html/xen-devel/2015-02/msg03256.html
generalizing the conditions here means code elsewhere doesn't need to
take into consideration internals of how load balancing in the credit
scheduler works.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_credit.c